home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / hgrpic10.zip / CGA.H < prev    next >
C/C++ Source or Header  |  1991-05-02  |  720b  |  53 lines

  1. /*
  2.  * CGA.H -- (CGA) image manipulation routines
  3.  *          Header file
  4.  */
  5.  
  6. #ifndef __CGA_H
  7. #define __CGA_H
  8.  
  9.  
  10.  
  11.  
  12. /* TYPEDEFS */
  13.  
  14. typedef char          BYTE;
  15. typedef unsigned char UBYTE;
  16. typedef int           WORD;
  17. typedef unsigned int  UWORD;
  18. typedef long          LONG;
  19. typedef unsigned long ULONG;
  20.  
  21. typedef int           boolean;
  22. typedef unsigned char bool;
  23.  
  24.  
  25.  
  26.  
  27. /* DEFINES */
  28.  
  29. #define _BLACK 0
  30. #define _BLUE  1
  31. #define _RED   2
  32. #define _WHITE 3
  33.  
  34.  
  35.  
  36.  
  37. /* PROTOTYPES */
  38.  
  39. void cls(void);
  40.  
  41. void fload_pic(const char *name);
  42.  
  43. void init_cgfx(UBYTE vmode);
  44.  
  45. void mode(WORD vmode);
  46.  
  47. void put_pixel(int x, int y, int color);
  48.  
  49. void save_pic(const char *name);
  50.  
  51.  
  52. #endif __CGA_H
  53.